//
//  JSONSerializer.h
//  e-nurse
//
//  Created by triaphoo on 12-12-20.
//
//

#import <Foundation/Foundation.h>

@class User;
@class LoginResult;
@class RegisterResult;
@class ForgetPasswordResult;
@class ActivateResult;
@class ResendActivateCodeResult;
@class Record;

@interface JSONSerializer : NSObject

+(NSData*)serializeUserForLogin:(User*)user;

+(LoginResult*)deserializeLoginResult:(NSString*)json;

+(RegisterResult*)deserializeRegisterResult:(NSString*)json;

+(User*)deserializeUser:(NSString*)json;

+(ForgetPasswordResult *)deserializeForgetPasswordResult:(NSString *)json;

+(ActivateResult*)deserializeActivateResult:(NSString*)json;

+(ResendActivateCodeResult*)deserializeResendActivateCodeResult:(NSString*)json;

+(NSString*)serializeFeedback:(NSString*)content version:(NSString*)version agent:(NSString*)agent userUri:(NSString*)uri;

+(NSString*)serializeRecord:(Record*)record userUri:(NSString*)uri;

@end
